package com.tj.collection.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.tj.collection.db.entity.ClCommentEntity;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2019-09-03
 * Time: 10:22
 */
public interface ClCommentDao extends BaseMapper<ClCommentEntity> {

    List<ClCommentEntity> selectCommentListByParams(Map<String, Object> params);

    List<ClCommentEntity> selectCommonByCollectionNo(String collectionNo);

    /**
     * @param allocationNos
     * @return
     */
    List<ClCommentEntity> getLatestListByAllocationNos(List<String> allocationNos);

    /**
     * 查询不同手机号的最后一条记录
     *
     * @param collectionNo
     * @return
     */
    List<ClCommentEntity> selectLatestCommonByCollectionNo(String collectionNo);

    Integer selectTodayCommonByCollectionNo(String collectionNo,int type);
}
